package xupt.se.ttms.idao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;


import xupt.se.ttms.model.Sale;

public interface iSaleDAO {
	public boolean execInsert(Sale sale) throws Exception;
	public boolean execUpdate(Sale sale ) throws Exception;
	public List<Sale> HandleSaleResultSet(ResultSet rs) throws SQLException;
	
	public ResultSet execQuery(int i)throws Exception ;
	public ResultSet exexQueryAll()throws Exception;
	//主键是int类型，通过主键删除
	public boolean execDelete(int i) throws Exception ;
}
